'''
	身份运算符 (内存)
	1. is
	2. is not
'''


# 1. is
# ----------------------------------------
# 	格式: X is Y
# 	规则; 
# 		判断 x 和 y 是否来自同一个内存

a = b = 10
print( a is b )
print( id(a) )
print( id(b) )


a,b = 10,20
print( a is b )
print( id(a) )
print( id(b) )
print('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')



# 2. is not
# ----------------------------------------
# 	格式: X is not Y
# 	规则: 
# 		判断 x 和 y 是否来自不同的内存


a,b = 10,20
print( a is not b )
print( id(a) )
print( id(b) )









